<?php

class Application_Form_Buyer_RegistrationBuyer extends Application_Form_Buyer_Buyer
{
  
    public function init()
    {   //Call the Parent init()
        parent::init();
        /* Form Elements & Other Definitions Here ... */
        $this->setName('registrationBuyer');
        /*
         * Create Form Object RePassword
         */
        $repassword=new Zend_Form_Element_Password('repassword');
        $repassword->setRequired(true)
                   ->addFilter('stripTags')
                   ->addFilter('stringTrim')
                   ->setAttrib('maxlength', '16')
                   ->addValidator('NotEmpty');
        //Create Captcha Element
        /*$captcha = new Zend_Form_Element_Captcha(
            'captcha', // This is the name of the input field
            array('label' => 'Tulis huruf yang tertera pada daftar berikut',
            'captcha' => array( // Here comes the magic...
            // First the type...
            'captcha' => 'Image',
            // Length of the word...
            'wordLen' => 4,
            // Captcha timeout, 5 mins
            'timeout' => 10000,
            // What font to use...
            'font' => realpath('.').'\font\Arial.ttf',
            // Where to put the image
            'imgDir' =>realpath('.').'\images\captcha',
            // URL to the images
            // This was bogus, here's how it should be... Sorry again :S
            'imgUrl' => '/bitz-plaza/images/captcha/'
            )));*/
  
        $this->addElements(array($repassword/*,$captcha*/));


        
    }


}

